<extend name="Org/base"/>
<block name="main">
    <section class="section main">
        <div class="clearfix con-main" id="mainContainer">
            <div class="con-left">
                <div class="panel">
                    <div class="panel-header">
                        <h3 class="panel-title bbs-title">{$bbs.name}</h3>
                    </div>
                    <div class="panel-body">
                        <div class="bbs-info">
                            <a class="photo bbs-photo" href="//bbs.wooo.wang/{$bbs.id}"><img src="//img.wooo.wang/{$bbs.avatar}"></a>
                            <p><strong>{:formatCount($bbs['visit'])}</strong> 浏览 • <strong>{$bbs.gx}</strong> 贡献度</p>
                            <p>{$bbs.desc|default='我好像什么都没写...'}</p>
                            <p class="handle"><if condition="UID"><a id="donationBtn" class="handle-donation" href="javascript:void(0)">打赏</a><else/><a class="handle-donation" href="javascript:alert('您需要先登录账号')">打赏</a></if></p>
                        </div>
                    </div>
                </div>
                <div class="panel" id="siderBox">
                    <ul class="switch-section">
                        <li><a href="{:U('/org/'.$bbs['id'])}" class="red"><span class="icon-road"></span> 社区展示</a></li>
                        <li><a href="{:U('/manage/'.$bbs['id'])}"><span class="icon-hammer"></span> 社区管理</a></li>
                        <li><a href="{:U('/review/'.$bbs['id'])}"><span class="icon-eye"></span> 审阅列表</a></li>
                        <li><a href="{:U('/log/'.$bbs['id'])}"><span class="icon-docu"></span> 贡献日志</a></li>
                        <li><a href="{:U('/apply/'.$bbs['id'])}"><span class="icon-yj"></span> 申请记录</a></li>
                        <if condition="$auth">
                            <li><a href="{:U('/createDoc/'.$bbs['id'])}"><span class="icon-add"></span> 添加文档</a></li>
                            <li><a href="{:U('/set/'.$bbs['id'])}"><span class="icon-setting"></span> 设置社区</a></li>
                        </if>
                    </ul>
                </div>
            </div>
            <div class="con-right">
                <div class="panel other">
                    <div class="panel-header">
                        <h1 class="topic-title">社区展示<span class="icon-sum" id="toggleBtn" onclick="$('#mainContainer').toggleClass('toggle-side-mark');"></span></h1>
                        <p class="topic-info">
                            <a href="//bbs.wooo.wang/{$bbs['id']}">{$bbs['name']}</a> • 展示社区的相关信息！
                        </p>
                    </div>
                    <div class="panel-body">
                        <div class="other-connect">
                            <p class="manage-desc"><strong>简介：</strong>&nbsp;&nbsp;&nbsp;{$bbs.desc}</p>
                        </div>
                    </div>
                </div>
                <div class="panel other">
                    <div class="panel-header">
                        <h1 class="topic-title">公共文档</h1>
                        <p class="topic-info">
                            <a href="//doc.wooo.wang/{$bbs['id']}">{$bbs['name']}</a> • 展示社区的维护的所有公共文档！
                        </p>
                    </div>
                    <div class="panel-body">
                        <ul class="doc-lists">
                            <if condition="$docs">
                                <volist name="docs" id="vo">
                                    <li>
                                        <a href="//doc.wooo.wang/show/{$vo['id']}" class="con-cover"><img src="//img.wooo.wang/{$vo.img}" title="{$vo.name}"></a>
                                        <div class="con-book-info">
                                            <h3><a href="//doc.wooo.wang/show/{$vo['id']}">{$vo.name}<if condition="$vo['status'] eq -1"><span>[冻结中]</span></if></a></h3>
                                            <p>{$vo.desc}</p>
                                            <div class="con-book-footer">
                                                <if condition="$vo.review neq 0"><a href="/review/{$bbs.id}/d/{$vo.id}" class="red"> {$vo.review}个修改未处理</a></if> <span class="icon-star" title="收藏数"></span> {$vo.collect} &nbsp;<span class="icon-pencil" title="修改次数"></span> {$vo.change} &nbsp;<span class="icon-time" title="创建时间"></span> {$vo.create|date="Y-m-d",###}
                                            </div>
                                            <if condition="$superManager">
                                                <div class="con-btn"><a href="{:U('/setDoc/'.$vo['id'])}" class=""><span class="icon-setting"></span></a></div>
                                            </if>
                                        </div>
                                    </li>
                                </volist>
                            <else />
                            <p class="no-msg">该团体暂未创建文档...</p>
                            </if>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </section>
</block>